<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        //let ws = new WebSocket("ws://ws.wsdchigh.top/ws/ksv.do?loginFrom=test&token=1ba30f29-ca43-466d-81bb-7f134df09dbf")

        for(let i = 0;i<100;i++){
            let ws = new WebSocket("ws://127.0.0.1:7777/ws/ksv.do?loginFrom=test&token="+i)
            ws.onopen = event => {
                console.log(event)
                ws.send('{"a":"b"}')
            }

            ws.onclose = event => {
                console.log(event)
            }

            ws.onmessage = event => {
                console.log(event)
            }
        }
    </script>
</body>
</html>